package com.x.erp.model;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;

import java.math.BigDecimal;

/**
 * 延保订单商品关联
 */
@MappingTable(tableName = "ERP_INSURANCE_GOODS_VOUCHER")
public class InsuranceOrderGoods extends BaseObject {

	private static final long serialVersionUID = -7585411614433528939L;

	@MappingColumn(columnName = "ORDER_GOODS_ID", columnPk = true, columnLength = 32)
	private String oderGoodsId;// 延保订单商品Id

	@MappingColumn(columnName = "ORDER_ID")
	private String orderId;// 延保订单Id

	@MappingColumn(columnName = "GOODS_ID")
	private String goodsId;// 延保商品Id

	@MappingColumn(columnName = "GOODS_NAME")
	private String goodsName;// 延保商品名称

	@MappingColumn(columnName = "ORDER_GOODS_NUM")
	private Integer orderGoodsNum;// 延保商品数量

	@MappingColumn(columnName = "ORDER_GOODS_UNIT_PRICE")
	private BigDecimal orderGoodsUnitPrice;// 延保商品单价

	@MappingColumn(columnName = "AVAILABLE_NUM", columnReadOnly = true)
	private Integer availableNum;// 延保商品可用数量

	public String getOderGoodsId() {
		return oderGoodsId;
	}

	public void setOderGoodsId(String oderGoodsId) {
		this.oderGoodsId = oderGoodsId;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public Integer getOrderGoodsNum() {
		return orderGoodsNum;
	}

	public void setOrderGoodsNum(Integer orderGoodsNum) {
		this.orderGoodsNum = orderGoodsNum;
	}

	public BigDecimal getOrderGoodsUnitPrice() {
		return orderGoodsUnitPrice;
	}

	public void setOrderGoodsUnitPrice(BigDecimal orderGoodsUnitPrice) {
		this.orderGoodsUnitPrice = orderGoodsUnitPrice;
	}

	public Integer getAvailableNum() {
		return availableNum;
	}

	public void setAvailableNum(Integer availableNum) {
		this.availableNum = availableNum;
	}
}
